package com.example.twotwo_project;

import android.content.Context;
import android.content.Intent;
import android.view.MenuItem;


public class MyOptionMenu {
	Intent intent = null;
	
	public MyOptionMenu(Context cont, MenuItem item){
		int id = item.getItemId();
		switch(id){
		case R.id.action_map:
			intent = new Intent(cont, MapView.class);
		case R.id.action_friend:
			intent = new Intent(cont,None.class);
		}
		intent.addFlags(
				Intent.FLAG_ACTIVITY_NO_HISTORY |
				Intent.FLAG_ACTIVITY_SINGLE_TOP
				);
	}
	public Intent getIntent(){
		return intent;
	}

}
